package com.swt.testdemo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 数据源
 *
 * @author Bleeth
 * @version 1.0
 * @date 2020-01-08 16:12
 */
@Data
@TableName("sys_data_source")
public class SysDataSourceEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;


    private String sourceType;


    private String sourceName;


    private String sourceUrl;

    private String sourceHeader;

    private Integer dataTemplateId;

    private String fieldDelimiter;

    private String fieldSplit;

    private String sourceCharset;


    private String sourceMd5;

    private String sourceIndex;


    private String sourceStatus;


    private Date createdTime;


    private Date updateTime;


    private Integer recordNum;


    private long sourceFileSize;


    private String dbUpdateField;

    private String dbConfigGroup;


    public static final String SOURCE_TYPE_CSV = "CSV";

    public static final String SOURCE_TYPE_DB = "DB";

    public static final String SOURCE_TYPE_EXCEL = "EXCEL";

    //上传状态
    public static final String SOURCE_STATUS_UPLOAD = "UPLOAD";

    public static final String SOURCE_STATUS_IMPORT = "IMPORT";

}
